package musika;

import junit.framework.TestCase;

public class PentagramaTest extends TestCase {

	Pentagrama p;
	
	protected void setUp() throws Exception {
		super.setUp();
		p = new Pentagrama(true,0,24);
	}

	protected void tearDown() throws Exception {
		super.tearDown();
		p=null;
	}

	public void testPentagrama() {
		assertNotNull(p);
	}

	public void testIsEmaitzaDa() {
		assertTrue(p.isEmaitzaDa());
	}

	public void testSetEmaitzaDa() {
		
		p.setEmaitzaDa(false);
		
		assertFalse(p.isEmaitzaDa());
	}

	public void testGetId() {
		assertEquals(0,p.getId());
	}

	public void testSetId() {
		p.setId(1);
		
		assertEquals(1,p.getId());
	}

	public void testGetKonpasak() {
		assertNotNull(p.getKonpasak());
	}

}
